<?php
/***************************************************************************
 * 
 * Copyright (c) 2010 , Inc. All Rights Reserved
 * $Id$ 
 * 
 **************************************************************************/
 
 
 
/**
 * @file ValidationTestSuite.php
 * @author niulei(niulei@)
 * @date 2010/05/17 18:58:28
 * @version $Revision$ 
 * @brief 
 *  
 **/
if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'Framework_AllTests::main');
}

require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'ValidationStringTest.php';
require_once 'ValidationExceptionTest.php';
require_once 'ValidationFloatTest.php';
require_once 'ValidationIntTest.php';
require_once 'ValidationNumberTest.php';
require_once 'ValidationOtherSimpleTest.php';
require_once 'ValidationArrayInputTest.php';

class Framework_AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }

    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework');

        $suite->addTestSuite('ValidationExceptionTest');
        $suite->addTestSuite('ValidationStringTest');
        $suite->addTestSuite('ValidationFloatTest');
        $suite->addTestSuite('ValidationIntTest');
        $suite->addTestSuite('ValidationNumberTest');
        $suite->addTestSuite('ValidationOtherSimpleTest');
        $suite->addTestSuite('ValidationArrayInputTest');
        return $suite;
    }
}

if (PHPUnit_MAIN_METHOD == 'Framework_AllTests::main') {
    Framework_AllTests::main();
}
?>
